# Contributor: Richard Patel <me@terorie.dev>
# Maintainer: John Kerl <kerl.john.r@gmail.com>
pkgname=miller
pkgver=5.10.2
pkgrel=0
pkgdesc="Name-indexed data processing tool"
url="https://johnkerl.org/miller/doc/"
arch="all"
license="BSD-2-Clause"
subpackages="$pkgname-doc"
makedepends="autoconf automake libtool flex diffutils tzdata"
source="$pkgname-$pkgver.tar.gz::https://github.com/johnkerl/miller/archive/v$pkgver.tar.gz
	"

prepare() {
	default_prepare
	autoreconf -fiv
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="be40611b055d94f3b0ef75b35dfd242dd4942dce3292bb01b48a6a12f9e4c09fc43bb9d0650902c7aa13328d9a2bbcea4da2964af58d07f39ae63b34712a45f5  miller-5.10.2.tar.gz"
